
TARGET	:=	opsearch

$(TARGET).exe	:	source/$(TARGET).c source/$(TARGET).h versioninfo.res makefile
	@dmc -c source/$(TARGET).c versioninfo.res
	@optlink $(TARGET),,,user32+kernel32/RC:versioninfo/noi
	@rm *.obj *.map
	@echo built ... $(notdir $@)
	opsearch source/test_codes.bin 7E1D00 7E1D02 /short

versioninfo.res	:	source/versioninfo.rc source/$(TARGET).h
	@rcc -32 source/versioninfo.rc

.PHONY: clean

clean:
	@rm $(TARGET).exe $(TARGET).obj $(TARGET).map versioninfo.res
	@echo clean ...
